<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  <head>
    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
    <meta name="generator" content="AsciiDoc 8.2.5" />
    <link rel="stylesheet" href="xhtml11.css" type="text/css" />
    <link rel="icon" href="chrome://vimperator/skin/icon.png" type="image/png" />
    <script type="application/x-javascript;version=1.8" src="help.js"></script>
    <title>repeat.html</title>
  </head>
<body>
<h1 style="font-size: inherit; text-align: right;">
  <span class="tag" style="float: none;">repeat.html</span>
</h1>
<div class="para"><p><div style="float: right; padding-left: 1px;"> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <fieldset class="paypal"> <input type="hidden" name="cmd" value="_s-xclick"/> <input type="image" src="" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"/> <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHPwYJKoZIhvcNAQcEoIIHMDCCBywCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYBDDJfc+lXLBSAM9XSWv/ebzG/L7PTqYiIXaWVg8pfinDsfYaAcifcgCTuApg4v/VaZIQ/hLODzQu2EvmjGXP0twErA/Q8G5gx0l197PJSyVXb1sLwd1mgOdLF4t0HmDCdEI9z3H6CMhsb3xVwlfpzllSfCIqzlSpx4QtdzEZGzLDELMAkGBSsOAwIaBQAwgbwGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQI8ZOwn5Q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mlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tggEAMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADgYEAgV86VpqAWuXvX6Oro4qJ1tYVIT5DgWpE692Ag422H7yRIr/9j/iKG4Thia/Oflx4TdL+IFJBAyPK9v6zZNZtBgPBynXb048hsP16l2vi0k5Q2JKiPDsEfBhGI+HnxLXEaUWAcVfCsQFvd2A1sxRr67ip5y2wwBelUecP3AjJ+YcxggGaMIIBlgIBATCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTA3MDMyMTIyMzI1OFowIwYJKoZIhvcNAQkEMRYEFCirrvlwYVHQiNEEbM6ikfx9+Dm5MA0GCSqGSIb3DQEBAQUABIGAtbsR8GdCdURLziozXLSdtY+zJZUPPeQFXXy2V1S/3ldiN+pRvd4HI7xz8mOY1UaKJZpwZnOosy9MflL1/hbiEtEyQ2Dm/s4jnTcJng/NjLIZu+0NYxXRJhB+zMJubnMMMjzNrGlqI4F2HAB/bCA1eOJ5B83Of3dA4rk/T/8GoSQ=-----END PKCS7-----"/> </fieldset> </form> </div> <span class="vimperator-logo"></span></p></div>
<div class="para"><p><span class="tag">repeat</span><br /></p></div>
<div class="para"><p>Vimperator can repeat a number of commands and record macros.</p></div>
<div class="para"><p><table style="border-bottom: 1px solid silver; width: 100%">
<tr style="width: 100%"><td style="width: 50%"><h2>Macros</h2></td><td style="width: 50%">

 <a id="complex-repeat"/><span class="tag">complex-repeat</span>
 <a id="macros"/><span class="tag">macros</span>
</td></tr>
</table></p></div>
<div class="para"><p><span class="tag">q</span></p></div>
<div class="quoteblock">
<div class="content">
<div class="para"><p>Record a key sequence into a macro.
Available macros are <span class="argument">&#123;0-9a-zA-Z&#125;</span> (uppercase to append).
Type <a class="mapping" href="#">q</a> to stop recording.</p></div>
<div class="attribution">
</div></div></div>
<div class="para"><p><span class="tag">:macros</span>
<div class="key">:mac[ros] <span class="argument">[pat]</span></div><br /></p></div>
<div class="quoteblock">
<div class="content">
<div class="para"><p>List recorded macros matching the optional regular expression <span class="argument">[pat]</span>. If
no regexp is given, list all macros.</p></div>
<div class="attribution">
</div></div></div>
<div class="para"><p><span class="tag">:delmac</span> <span class="tag">:delmacros</span>
<div class="key">:delmac[ros] <span class="argument">&#123;args&#125;</span></div><br />
<div class="key">:delmac[ros]!</div></p></div>
<div class="quoteblock">
<div class="content">
<div class="para"><p>Delete recorded macros matching the regular expression <span class="argument">&#123;args&#125;</span>. If <span class="argument">&#91;!&#93;</span> is given
all macros are deleted.</p></div>
<div class="attribution">
</div></div></div>
<div class="para"><p><span class="tag">@</span> <span class="tag">:play</span>
<div class="key">:pl[ay] <span class="argument">&#123;arg&#125;</span></div><br />
<div class="key"><span class="argument">&#91;count&#93;</span>@<span class="argument">&#123;arg&#125;</span></div></p></div>
<div class="quoteblock">
<div class="content">
<div class="para"><p>Plays the contents of macro with name <span class="argument">&#123;arg&#125;</span> <span class="argument">&#91;count&#93;</span> times. The <a class="mapping" href="#">@</a> mapping
only accepts <span class="argument">&#123;0-9a-z&#125;</span> as <span class="argument">&#123;arg&#125;</span>.</p></div>
<div class="attribution">
</div></div></div>
<div class="para"><p><span class="tag">@@</span>
<div class="key"><span class="argument">&#91;count&#93;</span>@@</div></p></div>
<div class="quoteblock">
<div class="content">
<div class="para"><p>Replay the last executed macro <span class="argument">&#91;count&#93;</span> times.</p></div>
<div class="attribution">
</div></div></div>
<div class="para"><p><span class="tag">.</span>
<div class="key"><span class="argument">&#91;count&#93;</span>.</div></p></div>
<div class="quoteblock">
<div class="content">
<div class="para"><p>Repeat the last keyboard mapping <span class="argument">&#91;count&#93;</span> times. Note that, unlike in Vim, this
does not apply solely to editing commands, mainly because Vimperator doesn't
have them.</p></div>
<div class="attribution">
</div></div></div>
<div class="para"><p><table style="border-bottom: 1px solid silver; width: 100%">
<tr style="width: 100%"><td style="width: 50%"><h2>Using&#160;scripts</h2></td><td style="width: 50%">


 <a id="using-scripts"/><span class="tag">using-scripts</span>
</td></tr>
</table></p></div>
<div class="para"><p><span class="tag">:so</span> <span class="tag">:source</span>
<div class="key">:so[urce]<span class="argument">&#91;!&#93;</span> <span class="argument">&#123;file&#125;</span></div><br /></p></div>
<div class="quoteblock">
<div class="content">
<div class="para"><p>Read Ex commands, JavaScript, or CSS from <span class="argument">&#123;file&#125;</span>. You can either source files
which mostly contain Ex commands like <a class="command" href="#">map &lt; gt</a> and put JavaScript code
within a:</p></div>
<div class="listingblock">
<div class="content">
<pre><tt>js &lt;&lt;EOF
hello = function () {
  alert("Hello world");
}
EOF</tt></pre>
</div></div>
<div class="para"><p>Or you can alternatively source a file which ends in <em>.js</em>. These files are
automatically sourced as pure JavaScript files.</p></div>
<div class="para"><p><span class="info">Note:</span> In both cases you must add functions to the global window object like
shown above, functions written as:</p></div>
<div class="listingblock">
<div class="content">
<pre><tt>function hello2() {
  alert("Hello world");
}</tt></pre>
</div></div>
<div class="para"><p>are only available within the scope of the script.</p></div>
<div class="para"><p>The <em>.vimperatorrc</em> file in your home directory and any files in
<em>~/.vimperator/plugin/</em> are always sourced at startup. ~ is supported as a
shortcut for the <em>$HOME</em> directory. If <span class="argument">&#91;!&#93;</span> is specified, errors are not
printed.</p></div>
<div class="attribution">
</div></div></div>
<div class="para"><p><span class="tag">:lpl</span> <span class="tag">:loadplugins</span>
<div class="key">:loadplugins</div><br /></p></div>
<div class="quoteblock">
<div class="content">
<div class="para"><p>Load all unloaded plugins immediately. Because plugins are automatically
loaded after vimperatorrc is sourced, this command must be placed early
in the vimperatorrc file if vimperatorrc also includes commands that are
implemented by plugins. Additionally, this command allows for sourcing
new plugins without restarting Vimperator.</p></div>
<div class="attribution">
</div></div></div>
<div class="para"><p><span class="tag">:ru</span> <span class="tag">:runtime</span>
<div class="key">:runt[ime]<span class="argument">&#91;!&#93;</span> <span class="argument">&#123;file&#125;</span> &#8230;</div><br /></p></div>
<div class="quoteblock">
<div class="content">
<div class="para"><p>Source the specified file from each directory in <a class="option" href="">'runtimepath'</a>. Example:<br />
<a class="command" href="">:runtime plugin/foobar.vimp</a><br />
Only the first found file is sourced. When <span class="argument">&#91;!&#93;</span> is given, all found files are
sourced.</p></div>
<div class="attribution">
</div></div></div>
<div class="para"><p><span class="tag">:scrip</span> <span class="tag">:scriptnames</span>
<div class="key">:scrip[tnames]</div><br /></p></div>
<div class="quoteblock">
<div class="content">
<div class="para"><p>List all sourced script names, in the order they were first sourced.</p></div>
<div class="attribution">
</div></div></div>
<div class="para"><p><span class="tag">:fini</span> <span class="tag">:finish</span>
<div class="key">:fini[sh]</div><br /></p></div>
<div class="quoteblock">
<div class="content">
<div class="para"><p>Stop sourcing a script file. This can only be called from within a Vimperator
script file.</p></div>
<div class="attribution">
</div></div></div>
<div class="para"><p><table style="border-bottom: 1px solid silver; width: 100%">
<tr style="width: 100%"><td style="width: 50%"><h2>Profiling</h2></td><td style="width: 50%">

 <a id="profiling"/><span class="tag">profiling</span>
 <a id="profile"/><span class="tag">profile</span>
</td></tr>
</table></p></div>
<div class="para"><p><span class="tag">:time</span>
<div class="key">:<span class="argument">&#91;count&#93;</span>time<span class="argument">&#91;!&#93;</span> <span class="argument">&#123;code|:command&#125;</span></div><br /></p></div>
<div class="quoteblock">
<div class="content">
<div class="para"><p>Profile a piece of code or a command. Run <span class="argument">&#123;code&#125;</span> <span class="argument">&#91;count&#93;</span> times (default 1)
and returns the elapsed time. <span class="argument">&#123;code&#125;</span> is always passed to JavaScript's eval(),
which might be slow, so take the results with a grain of salt.</p></div>
<div class="para"><p>If <span class="argument">&#123;code&#125;</span> starts with a <a class="command" href="#">:</a>, it is executed as a Vimperator command.</p></div>
<div class="para"><p>Use the special version with <span class="argument">&#91;!&#93;</span> if you just want to run any command multiple
times without showing profiling statistics.</p></div>
<div class="attribution">
</div></div></div>
<div id="footer">
<div id="footer-text">
Last updated 2009-02-28 20:06:41 IST
</div>
</div>
</body>
</html>
